package com.buka.server.feign;


import com.buka.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "goods")
public interface ProductDetailsFeign {
    /**
     * 减库存
     * @param id
     * @param num
     * @return
     */
    @GetMapping("/productDetails/reducedInventory")
    Result reducedInventory(@RequestParam Long id, @RequestParam Integer num);
}